package com.jgp.config;

import java.text.SimpleDateFormat;
import java.time.format.DateTimeFormatter;

/**
 * 项目   gavin-project
 * 作者   loufei
 * 时间   2019-04-26
 */
public class GnBuildInConstants {
    
    //时间格式常量
    public static final String DATE_TIME_FORMATTER_PATTERN = "yyyy-MM-dd HH:mm:ss";
    public static final String DATE_FORMATTER_PATTERN = "yyyy-MM-dd";
    public static final String TIME_FORMATTER_PATTERN = "HH:mm:ss";
    
    public static final SimpleDateFormat S_DATE_TIME_FORMATTER = new SimpleDateFormat(DATE_TIME_FORMATTER_PATTERN);
    public static final SimpleDateFormat S_DATE_FORMATTER = new SimpleDateFormat(DATE_FORMATTER_PATTERN);
    public static final SimpleDateFormat S_TIME_FORMATTER = new SimpleDateFormat(TIME_FORMATTER_PATTERN);
    
    public static final DateTimeFormatter DATE_TIME_FORMATTER = DateTimeFormatter.ofPattern(DATE_TIME_FORMATTER_PATTERN);
    public static final DateTimeFormatter DATE_FORMATTER = DateTimeFormatter.ofPattern(DATE_FORMATTER_PATTERN);
    public static final DateTimeFormatter TIME_FORMATTER = DateTimeFormatter.ofPattern(TIME_FORMATTER_PATTERN);
    //时间段常量
    public static final int _5S = 5;
    public static final int _10S = 10;
    public static final int _30S = 30;
    public static final int _1M = 60;
    public static final int _5M = 300;
    public static final int _10M = 600;
    public static final int _30M = 1800;
    public static final int _1H = 3600;
    public static final int _1D = 86400;
}
